package com.cube.truthseer.entity.video.po;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.cube.truthseer.entity.video.enums.VideoDeleteStatus;
import com.cube.truthseer.entity.video.enums.VideoFlagStatus;

import java.io.Serializable;

/**
 * <p>
 * 
 * </p>
 *
 * @author koshi
 * @since 2024-03-12
 */
@TableName("video")
public class Video implements Serializable {

    private static final long serialVersionUID = 1L;

    /**
     * 视频的id
     */
    @TableId(value = "video_id", type = IdType.ASSIGN_ID)
    private Long videoId;

    /**
     * 是否可见1：不可见
     */
    private VideoFlagStatus flag;

    /**
     * 是否删除：1：删除
       */
    private VideoDeleteStatus isDelete;

    /**
     * 视频大小
     */
    private String size;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 创建时间
     */
    private LocalDateTime createTime;

    public Long getVideoId() {
        return videoId;
    }

    public void setVideoId(Long videoId) {
        this.videoId = videoId;
    }
    public VideoFlagStatus getFlag() {
        return flag;
    }

    public void setFlag(VideoFlagStatus flag) {
        this.flag = flag;
    }
    public VideoDeleteStatus getDelete() {
        return isDelete;
    }

    public void setDelete(VideoDeleteStatus isDelete) {
        this.isDelete = isDelete;
    }
    public String getSize() {
        return size;
    }

    public void setSize(String size) {
        this.size = size;
    }
    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }
    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    @Override
    public String toString() {
        return "Video{" +
            "videoId=" + videoId +
            ", flag=" + flag +
            ", isDelete=" + isDelete +
            ", size=" + size +
            ", userId=" + userId +
            ", createTime=" + createTime +
        "}";
    }
}
